<template>
  <ant-modal
    modalWidth="576"
    modalHeight="500"
    :visible="open"
    :modal-title="formTitle"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" slot="content" layout="vertical">
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="卷名称" prop="volumeName">
            <a-input v-model="form.volumeName" placeholder="请输入卷名称"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="卷模式" prop="driver">
            <a-input v-model="form.driver" placeholder="请输入卷模式"/>
          </a-form-model-item>
        </a-col>
      </a-row>
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="卷创建时间" prop="volumeCreateTime">
            <a-date-picker
              v-model="form.volumeCreateTime"
              valueFormat="YYYY-MM-DD"
              :show-today="true"
              placeholder="选择日期"
              style="width: 100%"
            />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="卷范围" prop="scope">
            <a-input v-model="form.scope" placeholder="请输入卷范围"/>
          </a-form-model-item>
        </a-col>
      </a-row>
      <a-row :gutter="32">
      </a-row>
    </a-form-model>
    <template slot="footer">
      <a-button :disabled="disabled" @click="cancel">
        取消
      </a-button>
      <a-button type="primary" :disabled="disabled" @click="submitForm(true)">
        保存
      </a-button>
    </template>
  </ant-modal>
</template>
<script>
import StorageVolumeAddForm from './StorageVolumeForm'
export default {
  ...StorageVolumeAddForm
}
</script>
